<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

require_once 'Zend/Form.php';
require_once 'Zend/Form/Element/Text.php';
require_once 'Zend/View/Helper/FormRadio.php';

/**
 * Description of BuscarCliente
 *
 * @author kristian
 */
class BuscarCliente extends Zend_Form{

    public function init() {
        // especifica la entrada de texto del codigo postal
        $buscar = new Zend_Form_Element_Text();
        $buscar->setName('buscado');
        $buscar->addFilter('StringTrim');
        $buscar->addValidator('Regex', false, array('[0-9a-zA-Z]*'));
        $buscar->setRequired(true);

        $formR = new Zend_View_Helper_FormRadio();
        $formR->formRadio(
            "criterio",
            'nombre',
            array(
                'nombre' => 'Nombre',
                'provincia' => 'Provincia',
            )
        );
}
}
?>
